cmake_minimum_required(VERSION 3.0.0)
project(queue_test VERSION 0.1.0)

find_package(PkgConfig REQUIRED)

pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET
    # sudo apt install -y libavdevice-dev
    libavdevice
    libavfilter
    libavformat
    libavcodec
    libswresample
    libswscale
    libavutil
)

pkg_check_modules(LIBSDL REQUIRED IMPORTED_TARGET
    # sudo apt install -y libsdl2-dev
    sdl2
    # # not libsdl2-image-dev
    # sudo apt install -y libsdl-image1.2-dev 
    SDL_image
    # SDL_audio
)

add_executable(queue_test main.cpp)

target_link_libraries(
    queue_test
    PkgConfig::LIBAV
    PkgConfig::LIBSDL

    pthread
)
